package bavaria.hightech.testit;

import bavaria.hightech.banking.Account;
import bavaria.hightech.banking.BankImpl;
import bavaria.hightech.banking.ECurrency;
import bavaria.hightech.banking.Money;
import bavaria.hightech.exception.WrongValueException;
import bavaria.hightech.timer.InternalClock;

public class GuiTest {
	private static InternalClock timer;
	/**
	 * @param args
	 * @throws WrongValueException 
	 */
	public static void main(String[] args) throws WrongValueException {
		timer = InternalClock.getInstance();
		BankImpl bankImpl = new BankImpl("de", "de");
		Account a = bankImpl.openCurrentAccount("Daniel Fuss");
		bankImpl.cashInValue(a.getAccountNumber(), new Money(1000, ECurrency.EUR), "Einzahlung");
		Account b = bankImpl.openCurrentAccount("Christian Adler");
		System.out.println("A: " + a.getAccountNumber());
		System.out.println("B: " + b.getAccountNumber());
	}
}
